package cn.lbd.auth.dao;


import cn.lbd.auth.model.RoleAuth;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface RoleAuthDao {
    void insertRoleAuth(RoleAuth roleAuth);
    RoleAuth selectAnRoleAuth(Map<String, Integer> roleAuthMap);
    void deleteRoleAuth(Map<String, Integer> roleAuthMap);
    void updateRoleAuth(Map<String, Integer> roleAuthMap);
    List<RoleAuth> selectAuthByRoleId(Integer roleId);
    void deleteAuthByRoleId(Integer roleId);
}
